diff options
| author | Adam Soltys <[email protected]> | 2026-02-11 23:02:30 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 23:02:30 -0800 |
| commit | 2e61e8abbc318c36969cb5add0c63df81135b4ab (patch) | |
| tree | 706396b41da448f0172719313fb6ae30ecebb004 /src/routes/(app)/[username]/(profile) | |
| parent | 56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 (diff) | |
| download | coinos-ui-2e61e8abbc318c36969cb5add0c63df81135b4ab.tar.gz coinos-ui-2e61e8abbc318c36969cb5add0c63df81135b4ab.zip | |
formatting
Diffstat (limited to 'src/routes/(app)/[username]/(profile)')
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+layout.svelte | 35 | ||||
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+page.svelte | 35 | ||||
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/notes/new/+page.svelte | 2 |
3 files changed, 29 insertions, 43 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.svelte b/src/routes/(app)/[username]/(profile)/+layout.svelte index 6e6a318f..a0d45f22 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.svelte +++ b/src/routes/(app)/[username]/(profile)/+layout.svelte @@ -36,9 +36,7 @@ let stripped = $derived(n.replace(/\s/g, "")); let username = $derived(n.length > 60 ? n.substr(0, 6) : display || stripped); - let lnaddr = $derived( - subject?.anon ? subject.lud16 || undefined : `${stripped}@${$page.url.host}`, - ); + let lnaddr = $derived(subject?.anon ? subject.lud16 || undefined : `${stripped}@${$page.url.host}`); let profile = $derived(`${$page.url.host}/${subject.anon ? npub : stripped}`); let lnurl = $derived( encode( @@ -82,9 +80,7 @@ role="button" tabindex="0" > - <div> - {subject.about} - </div> + <div>{subject.about}</div> {#if subject.website} <div> @@ -100,9 +96,7 @@ <div> <div class="text-secondary">{$t("user.lightningAddress")}</div> <div class="flex gap-4"> - <div class="break-all grow text-xl"> - {lnaddr} - </div> + <div class="break-all grow text-xl">{lnaddr}</div> <div class="flex mb-auto gap-1"> <button type="button" @@ -110,8 +104,9 @@ aria-label="Copy lightning address" onclick={() => copy(lnaddr)} > - ><iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon></button - > + > + <iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon> + </button> <a href={`/qr/${encodeURIComponent(lnaddr)}`} class="my-auto" @@ -126,9 +121,7 @@ <div> <div class="text-secondary">{$t("user.url")}</div> <div class="flex gap-4"> - <div class="break-all grow text-xl"> - {profile} - </div> + <div class="break-all grow text-xl">{profile}</div> <div class="flex mb-auto gap-1"> <button type="button" @@ -136,8 +129,9 @@ aria-label="Copy profile URL" onclick={() => copy(profile)} > - ><iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon></button - > + > + <iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon> + </button> <a href={`/qr/${encodeURIComponent(`${$page.url.protocol}//${profile}`)}`} class="my-auto" @@ -151,9 +145,7 @@ <div> <div class="text-secondary">{$t("user.lnurl")}</div> <div class="flex gap-4"> - <div class="break-all grow text-xl"> - {lnurl} - </div> + <div class="break-all grow text-xl">{lnurl}</div> <div class="flex mb-auto gap-1"> <button type="button" @@ -161,8 +153,9 @@ aria-label="Copy LNURL" onclick={() => copy(`lightning:${lnurl}`)} > - ><iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon></button - > + > + <iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon> + </button> <a href={`/${n}/accepted/${encodeURIComponent(`lightning:${lnurl}`)}`} class="my-auto" diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte index 78816e36..21d0abdb 100644 --- a/src/routes/(app)/[username]/(profile)/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/+page.svelte @@ -34,32 +34,30 @@ <div class="space-y-2"> {#if user?.destination && !user?.autowithdraw} <div class="rounded-2xl space-y-2 p-4 shadow-lg"> - <h1 class="text-3xl font-bold"> - {$t("user.settings.confirmAutoWithdrawal")} - </h1> - <div> - {$t("user.settings.confirmAutoWithdrawalDesc")} - </div> + <h1 class="text-3xl font-bold">{$t("user.settings.confirmAutoWithdrawal")}</h1> + <div>{$t("user.settings.confirmAutoWithdrawalDesc")}</div> <a href="/settings/account" class="btn"> <iconify-icon icon="ph:gear-bold" width="32"></iconify-icon> - Settings</a - > + Settings + </a> </div> {/if} {#if user?.fresh} <div> - {$t("user.settings.yourUsername")} <b>{user?.username}</b> + {$t("user.settings.yourUsername")} + <b>{user?.username}</b> {#if $password} <br /> {$t("user.settings.yourPassword")} - <b>{$password}</b>{/if} + <b>{$password}</b> + {/if} </div> <a href="/settings/profile" class="btn"> <iconify-icon icon="ph:gear-bold" width="32"></iconify-icon> - {$t("user.settings.continueSettingUp")}</a - > + {$t("user.settings.continueSettingUp")} + </a> {/if} {#if user?.id && user.id === subject.id} <div class="space-y-10 pb-8" data-sveltekit-preload-data="false"> @@ -80,9 +78,7 @@ </div> {#if locked} - <div class="text-sm"> - {$t("incident")} - </div> + <div class="text-sm">{$t("incident")}</div> {/if} {#if $installPrompt} @@ -100,16 +96,13 @@ {#if user?.username !== subject.username && (!subject.anon || subject.lud16)} <a href={subject.anon - ? `/send/${encodeURIComponent(subject.lud16)}` - : `/pay/${subject.username}`} + ? `/send/${encodeURIComponent(subject.lud16)}` + : `/pay/${subject.username}`} class="contents" > <button class="btn btn-accent !text-2xl items-center !w-full sm:!max-w-[400px] mx-auto"> <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300"></iconify-icon> - <div> - {$t("user.pay")} - {subject.username} - </div> + <div>{$t("user.pay")}{subject.username}</div> </button> </a> {/if} diff --git a/src/routes/(app)/[username]/(profile)/notes/new/+page.svelte b/src/routes/(app)/[username]/(profile)/notes/new/+page.svelte index a9cc3e19..4ed4f930 100644 --- a/src/routes/(app)/[username]/(profile)/notes/new/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/notes/new/+page.svelte @@ -33,6 +33,6 @@ <div class="container px-4 max-w-xl mx-auto space-y-5"> <form method="POST" class="space-y-2 text-xl" onsubmit={submit}> <textarea use:focus bind:value={content} placeholder={$t("notes.contents")}></textarea> - <button type="submit" class="btn btn-accent"> {$t("payments.submit")}</button> + <button type="submit" class="btn btn-accent">{$t("payments.submit")}</button> </form> </div> |
